package io.api.modules.login.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 用户封装类
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2024-07-10
 */
@Data
@ApiModel(value = "施工通知表单")
public class WorkOrderDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "projectId")
    private Long projectId;

    @ApiModelProperty(value = "用户s")
    @NotNull(message = "通知用户不能为空")
    private List<UserDTO> users;

    @ApiModelProperty(value = "项目名称")
    @NotBlank(message = "项目名称不能为空")
    private String projectName;

}